.class Lcom/waiqin365/lightapp/kehu/wheelview/c;
.super Landroid/os/AsyncTask;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

.field private b:J


# direct methods
.method private constructor <init>(Lcom/waiqin365/lightapp/kehu/wheelview/a;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/waiqin365/lightapp/kehu/wheelview/a;Lcom/waiqin365/lightapp/kehu/wheelview/b;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kehu/wheelview/c;-><init>(Lcom/waiqin365/lightapp/kehu/wheelview/a;)V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/String;
    .locals 3

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->b:J

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    const-string/jumbo v1, "sys/sys_district.wqdata"

    invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/InputStream;->available()I

    move-result v1

    new-array v1, v1, [B

    invoke-virtual {v0, v1}, Ljava/io/InputStream;->read([B)I

    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    new-instance v0, Ljava/lang/String;

    const-string/jumbo v2, "UTF-8"

    invoke-direct {v0, v1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected a(Ljava/lang/String;)V
    .locals 4

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    :try_start_0
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Lcom/waiqin365/lightapp/kehu/wheelview/a;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    const/4 v0, 0x0

    :goto_0
    if-eqz v1, :cond_0

    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v0, v2, :cond_0

    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v3, v2}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Lcom/waiqin365/lightapp/kehu/wheelview/a;Lorg/json/JSONObject;)Lcom/waiqin365/lightapp/kehu/b/cm;

    move-result-object v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->b(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/wheelview/a;->c:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->b(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->b(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->b(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Ljava/util/ArrayList;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->c(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->c(Lcom/waiqin365/lightapp/kehu/wheelview/a;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->c(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Lcom/waiqin365/lightapp/kehu/wheelview/a;Ljava/lang/String;)Ljava/lang/String;

    :cond_1
    :goto_2
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a:Lcom/waiqin365/lightapp/kehu/wheelview/a;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/wheelview/a;->a(Ljava/util/ArrayList;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2
.end method

.method protected synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1

    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a([Ljava/lang/Void;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0

    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kehu/wheelview/c;->a(Ljava/lang/String;)V

    return-void
.end method
